package com.lingxu.base.system.manage.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 在线用户信息
 * </p>
 *
 * @Author scott
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
public class LoginUser {

	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
	@ApiModelProperty(value = "主键")
	private String id;
	/**用户账号*/
	@ApiModelProperty(value = "用户账号")
	private String username;
	/**用户姓名*/
	@ApiModelProperty(value = "用户姓名")
	private String name;
	/**用户密码（加密）*/
	@ApiModelProperty(value = "用户密码（加密）")
	private String password;
	/**密码加密密钥*/
	@ApiModelProperty(value = "密码加密密钥")
	private String salt;
	/**身份证号*/
	@ApiModelProperty(value = "身份证号")
	private String idcard;
	/**性别*/
	@ApiModelProperty(value = "性别")
	private String sex;
	/**电话号码*/
	@ApiModelProperty(value = "电话号码")
	private String tel;
	/**手机号码*/
	@ApiModelProperty(value = "手机号码")
	private String phone;
	/**联系地址*/
	@ApiModelProperty(value = "联系地址")
	private String address;
	/**邮箱*/
	@ApiModelProperty(value = "邮箱")
	private String email;
	/**状态(0:锁定；1:激活)*/
	@ApiModelProperty(value = "状态(0:锁定；1:激活)")
	private String status;
	/**状态(0:锁定；1:激活)*/
//	@ApiModelProperty(value = "激活状态(0:锁定；1:激活)")
//	private Integer isUse;
	/**密码最后更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "密码最后更新时间")
	private Date lastupdpwdtime;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createtime;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createby;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新时间")
	private Date updatetime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateby;
	/**删除标记位*/
	@ApiModelProperty(value = "删除标记位")
	private String isdel;
	/**单位名称*/
	@ApiModelProperty(value = "部门名称")
	private String deptname;
	/**部门id*/
	@ApiModelProperty(value = "部门id")
	private String deptid;
	/**备注*/
	@ApiModelProperty(value = "备注")
	private String remark;
	/**是否特殊用户*/
	@ApiModelProperty(value = "是否特殊用户即是领导")
	private String isleader;
	/**地区编号*/
	@ApiModelProperty(value = "地区编号")
	private String region;
	/**地区名称*/
	@ApiModelProperty(value = "地区名称")
	private String area;
	/**
	 * 当前登陆的部门id
	 */
	@ApiModelProperty(value = "当前登陆的部门id")
	private String nowdepartid;

	/**
	 * 当前登陆的部门code
	 */
	@ApiModelProperty(value = "当前登陆的部门code")
	private String nowdepartcode;

	/**
	 * 当前登陆的部门名
	 */
	@ApiModelProperty(value = "当前登陆的部门名")
	private String nowdepartname;

}
